package chapter1.String.task;

/*
5：定义一个字符串，输出他对应的字节和字符。
 */
public class Task5 {
    public static void main(String[] args) {
        byte[] a = "北京欢迎你".getBytes();
        char[] b = "北京欢迎你".toCharArray();
        for (byte c : a)
            System.out.print(c + " ");
        System.out.println();
        for (char c : b)
            System.out.print(c + " ");
    }

}
